<!DOCTYPE html>
<html>
<head>
    @include("/common/init.html"){}
    <script src="${baseStaticUrl}/js/util.js"></script>
</head>
<body style="overflow-y: hidden;">
	@include("/common/commonunity_header.html",{title:'社区'}){}
	<div class="fly-home fly-panel" style="background-image: url();">
		<img src="${user.avatar!}" alt="${user.nickname!}">
		<h1> ${user.nickname} <i class="iconfont icon-nan"></i>
			@if(user.level_is_vip! == 1){
	        	<i class="layui-badge fly-badge-vip">${user.level_name!}</i>
	        @}else{
	         	${user.level_name!}
	        @}
		</h1>
		<p class="fly-home-info">
			<i class="iconfont icon-gold" style="color:red" title="金币"></i>
			<span style="color: #FF7200;">${user.gold!}金币</span>
			<i class="iconfont icon-shijian"></i>
			<span>${user.c_time,dateFormat="yyyy-MM-dd"} 加入</span>
			<i class="iconfont icon-chengshi"></i>
			<span>${user.city!}</span>
		</p>
		@if(global.isNotNullOrEmpty(user.signature!)){
         <p class="fly-home-sign">${user.signature!}</p>
        @}else{
        	<p class="fly-home-sign">（这个人懒得留下签名）</p>
        @}

	</div>
	<div class="layui-container">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md6 fly-home-jie">
				<div class="fly-panel">
				    <h3 class="fly-panel-title">${user.nickname}最近的提问</h3>
				    <ul class="jie-row">
				    	@for(item in postList!){
				    	<li> <a href="${basePath}/jie/page/${item.id}" class="jie-title">${item.title}</a> <i>
				    	${item.c_time!}
				    	</i> <em class="layui-hide-xs">${item.hits!"0"}阅/${item.count!"0"}答</em> </li>
				    	@}
				    </ul>
			     </div>
			</div>
			<div class="layui-col-md6 fly-home-da">
				<div class="fly-panel">
			      <h3 class="fly-panel-title">${user.nickname}最近的回答</h3>
			      <ul class="home-jieda">
			      	@for(item in replayPostList!){
				    <li> <p> <span>${item.replay_time!}</span> 在<a href="${basePath}/jie/page/${item.post_id}" target="_blank">${item.title!}</a>中回答： </p>
		        		<epoch:content classValue="home-dacontent" id="${item.id!}_content" content="${item.replay_text!}"></epoch:content>
	        		</li>
	        		@}
		      	  </ul>
		     </div>
			</div>
		</div>
	</div>
<script>
	layui.cache.page = 'jie';
	layui.cache.user = {
	  username: '游客'
	  ,uid: -1
	  ,avatar: '../../res/images/avatar/00.jpg'
	  ,experience: 83
	  ,sex: '男'
	};
	layui.config({
	  version: "3.0.0"
	  ,base: '${baseStaticUrl}/mods/'
	}).extend({
	  fly: 'index'
	}).use(['fly', 'face'], function(){
	  var $ = layui.$
	  ,fly = layui.fly;
	});
</script>
</body>